﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace LogModel
{
    [DataContract]
    public class ActionRecord
    {
        [DataMember]
        public int id { get; set; }

        [DataMember]
        public int pid { get; set; }

        [DataMember]
        public string module { get; set; }

        [DataMember]
        public string sourcePosition { get; set; }

        [DataMember]
        public DateTime makeTime { get; set; }

        [DataMember]
        public string content { get; set; }
       
        public ActionRecord()
        {
            id = 1;
            pid = Process.GetCurrentProcess().Id;
            makeTime = DateTime.Now;
        }
    }
}
